package nml.mail.reg.smtp;


import nml.mail.reg.Reg;

import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;

public class  eastday_com extends Reg{

	public void reg(String username, String password) {		
		

		//http://mail.eastday.com/eastday/active.jsp?uid=
		String url = "http://login.eastday.com/EastUser/reg.aspx";
		get(url);
		
		dr.findElement(By.name("username")).sendKeys(username);
		dr.findElement(By.name("btnNext")).click();
		
		dr.findElement(By.name("password")).sendKeys(password);
		dr.findElement(By.name("password2")).sendKeys(password);
		
		dr.findElement(By.id("selectQtext")).click();
		sleep(1000);
		dr.findElement(By.cssSelector("#selectQoption li")).click();
		dr.findElement(By.name("pwdA")).sendKeys(password);
		
		
		
		
		dr.findElement(By.id("selectCtext")).click();
		sleep(1000);
		dr.findElements(By.cssSelector("#selectCoption li")).get(4).click();
		dr.findElement(By.name("txtCardId")).sendKeys("nml186");
		
		
		dr.findElement(By.name("txtEmail")).sendKeys("nml186@126.com");
 
 		
		
		
 	
		dr.findElement(By.name("door")).click();
		

	}

	public static void main(String[] args) {
		new eastday_com().reg("lookforthepain", "qq3131798654");
	}
	
	
}
